#ifndef STARTESTBOX_H
#define STARTESTBOX_H

#include "../element/box.h"


class StarTestBox : public Box
{
public:
    int pos;
    double interPt[2];
    double interParam[2];
    StarTestBox(Box * b);
    StarTestBox(double _x0 = 0, double _x1 = 0, double _y0 = 0, double _y1 = 0,
        double _z0  = 0, double _z1 = 0, int _flag = 0);
    bool critical;
    bool multiple;
    bool isEmpty();
    bool isOuter();
    bool isBoundary();
    bool isStar();
    bool isInner();
    bool isCritical(){return critical;}
    bool isMultiple(){return multiple;}
    StarTestBox intersect(StarTestBox *box);
    StarTestBox plus(StarTestBox *box);
    bool intersect(double tri[3][2]);
    bool intersect(double *p0, double *p1);
    int dim();
};

#endif // STARTESTBOX_H
